package com.share.shareplatform.shareuser.service;



import com.share.shareplatform.pojo.User;

import java.util.List;
import java.util.Map;

public interface UserService {



    Long addOne(User user);

    Integer updateOne(User user);

    Integer updateBaseOne(User user);

    Integer deleteOneById(Long id);

    Integer deleteAllByIds(Long[] ids);

    User findOneByUsername(String username);

    User findOneById(Long id);

    List<User> findPage(Integer pageIndex, Integer pageSize);

    User findUserByUsernameAndPassword(User user);

    User findOneSafeById(Long id);

    List<User> findAllSafeByIds(Long[] ids);

    Map<Long,User> findAllSafeByIdsAsMap(List<Long> list);

}
